package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.StrategyComment;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.StrategyCommentQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IStrategyCommentService {

    StrategyComment getById(Long id);

    PageInfo<?> query(QueryObject qo);

    void updateState(StrategyComment comment);

    List<StrategyComment> selelctStrategyByState();

    /**
     * 新增一个攻略评论
     * @param strategyComment
     */
    void save(StrategyComment strategyComment);
    List<StrategyComment> selectByStrategyId(Long strategyId);

    List<StrategyComment> listByStrategyId(Long id);

    List<StrategyComment> getCommentByUserId(Long userId);

    PageInfo<StrategyComment> queryForLists(StrategyCommentQueryObject qo);

    PageInfo<StrategyComment> getStrategyCommentById(StrategyCommentQueryObject qo);

    StrategyComment selectBystrategyCommentId(Long id);

    List<StrategyComment> selectByUserId(Long userId);
}
